package com.zhang.servicedriveruser.service.impl;

import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.servicedriveruser.mapper.DriverUserMapper;
import com.zhang.servicedriveruser.service.CityDriverUserService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-18
 */
@Service
public class CityDriverUserServiceImpl implements CityDriverUserService {
	@Autowired
	private DriverUserMapper driverUserMapper;
	public ResponseResult<Boolean> isAvailableDriver(String cityCode) {
		int i = driverUserMapper.selectDriverUserCountByCityCode(cityCode);
		if (i>0){
			return ResponseResult.success(true);
		}else {
			return ResponseResult.success(false);
		}
	}
}
